package sig.web.struts.actions;

import java.io.File;

import sig.util.IServices;

import com.opensymphony.xwork2.ActionSupport;

public class WorkingDatesAction extends ActionSupport {

	/**
	 * 
	 */
	
	private File file;
	
	private static final long serialVersionUID = 1L;

	private IServices services;
	private String contentType;
    private String filename;

    
    public void setUploadContentType(String contentType) {
        this.contentType = contentType;
     }

     public void setUploadFileName(String filename) {
        this.filename = filename;
     }
     
     
	public String execute() {
		return SUCCESS;
	}
	
	
	public String upload() {
		
		services.uploadConsultantFile(file);
		return SUCCESS;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}


	public IServices getServices() {
		return services;
	}


	public void setServices(IServices services) {
		this.services = services;
	}

}
